Remove unused DataStax Astra support - #1034
dkropachev wants to merge 3 commits into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: QUIET Plan: Advanced Run ID: 📒 Files selected for processing (18)
💤 Files with no reviewable changes (4)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe change removes DataStax Astra secure-connect-bundle and cloud proxy APIs, configuration, runtime handling, SNI support, tests, and dependencies. Client-routes handling remains and no longer conflicts with secure-connect bundles. Protocol option tests now validate Priority: ➖ Normal Merge Risk: ⚪ Minimal · up to This removes Astra secure-connect-bundle support while retaining Scylla client-routes support. The documented validation and focused coverage indicate no remaining merge-blocking risk. 🚥 Pre-merge checks | ✅ 2 | ❌ 3❌ Failed checks (2 warnings, 1 inconclusive)
✅ Passed checks (2 passed)
Full details: Linked Issues checkExplanation Most [ Full details: Out of Scope Changes checkExplanation The pull request includes changes unrelated to [ Full details: Docstring CoverageExplanation Docstring coverage is 16.67% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 18 functions across 13 files. (1 skipped: 1 unsupported.)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
a6a40b9 to
cca0952
Compare
nikagra
left a comment
There was a problem hiding this comment.
Two leftovers that have no line in the diff to anchor to:
- [Minor] 🟡
TypesafeDriverConfig.overrideDefaults()loses its only production caller here.git grep overrideDefaultsnow matches just the declaration andTypeSafeDriverConfigOverrideDefaultsTest— ~60 lines of mechanism plus a 150-line test go dead, yetapplyDefaultOverrides()still runs on everyreload(). - [Nit] 🟢
W3CContextRequestIdGenerator(String payloadKey)was added for the Astratraceparentdefault; after this PR its only caller isRequestIdGeneratorTest:77. The config-driven path uses theDriverContextctor and the interface default key.
|
Follow-up on the two unanchored review notes:
Both are intentionally unchanged; the Astra-specific caller and ASTRA_PAYLOAD_KEY are still removed. |
There was a problem hiding this comment.
🟢 Approval recommended
Validation passed and no unresolved review issues remain.
Pull request overview
Removes unsupported DataStax Astra secure-connect-bundle functionality while preserving ScyllaDB client-routes/private-endpoint support.
Changes:
- Removes Astra APIs, configuration, SNI routing, examples, fixtures, and tests.
- Removes WireMock and replaces transitive test utilities.
- Updates channel tests, documentation, and migration guidance.
File summaries
| File | Description |
|---|---|
upgrade_guide/README.md |
Documents the breaking removal. |
pom.xml |
Removes WireMock dependency management. |
manual/core/address_resolution/README.md |
Updates client-routes guidance. |
integration-tests/src/test/java/com/datastax/oss/driver/api/core/cloud/SniProxyServer.java |
Removes the Astra proxy fixture. |
integration-tests/src/test/java/com/datastax/oss/driver/api/core/cloud/SniProxyRule.java |
Removes the Astra proxy rule. |
integration-tests/src/test/java/com/datastax/oss/driver/api/core/cloud/CloudIT.java |
Removes Astra integration tests. |
integration-tests/pom.xml |
Removes the WireMock dependency. |
examples/src/main/java/com/datastax/oss/driver/examples/mapper/KillrVideoMapperExample.java |
Replaces Astra-specific content. |
examples/src/main/java/com/datastax/oss/driver/examples/astra/AstraReadCassandraVersion.java |
Removes the Astra example. |
core/src/test/resources/config/cloud/metadata.json |
Removes the cloud fixture. |
core/src/test/java/com/datastax/oss/driver/internal/core/protocol/BytesToSegmentDecoderTest.java |
Uses shaded Guava. |
core/src/test/java/com/datastax/oss/driver/internal/core/metrics/TaggingMetricIdGeneratorTest.java |
Uses shaded Guava. |
core/src/test/java/com/datastax/oss/driver/internal/core/metrics/DefaultMetricIdTest.java |
Uses shaded Guava. |
core/src/test/java/com/datastax/oss/driver/internal/core/metadata/schema/TableMetadataTest.java |
Uses shaded Guava. |
core/src/test/java/com/datastax/oss/driver/internal/core/metadata/DefaultTopologyMonitorTest.java |
Uses shaded Guava. |
core/src/test/java/com/datastax/oss/driver/internal/core/context/DefaultDriverConfigReporterTest.java |
Removes SNI assertions. |
core/src/test/java/com/datastax/oss/driver/internal/core/context/ClientRoutesConfigFromFileTest.java |
Removes the obsolete bundle conflict test. |
core/src/test/java/com/datastax/oss/driver/internal/core/config/cloud/CloudConfigFactoryTest.java |
Removes bundle parsing tests. |
core/src/test/java/com/datastax/oss/driver/internal/core/channel/ChannelFactoryTestBase.java |
Preserves OPTIONS negotiation. |
core/src/test/java/com/datastax/oss/driver/internal/core/channel/ChannelFactorySupportedOptionsTest.java |
Tests OPTIONS negotiation on every channel. |
core/src/test/java/com/datastax/oss/driver/internal/core/channel/ChannelFactoryClusterNameTest.java |
Updates channel initialization expectations. |
core/src/test/java/com/datastax/oss/driver/api/core/data/CqlVectorTest.java |
Replaces a transitive codec utility. |
core/src/main/resources/reference.conf |
Removes cloud configuration. |
core/src/main/java/com/datastax/oss/driver/internal/core/ssl/SniSslEngineFactory.java |
Removes Astra SNI TLS support. |
core/src/main/java/com/datastax/oss/driver/internal/core/metadata/SniEndPoint.java |
Removes the SNI endpoint implementation. |
core/src/main/java/com/datastax/oss/driver/internal/core/metadata/CloudTopologyMonitor.java |
Removes cloud topology handling. |
core/src/main/java/com/datastax/oss/driver/internal/core/context/DefaultDriverContext.java |
Removes cloud monitor selection. |
core/src/main/java/com/datastax/oss/driver/internal/core/context/DefaultDriverConfigReporter.java |
Removes SNI reporting logic. |
core/src/main/java/com/datastax/oss/driver/internal/core/config/cloud/CloudConfigFactory.java |
Removes bundle parsing. |
core/src/main/java/com/datastax/oss/driver/internal/core/config/cloud/CloudConfig.java |
Removes the cloud configuration model. |
core/src/main/java/com/datastax/oss/driver/internal/core/channel/ChannelFactory.java |
Removes Astra product handling. |
core/src/main/java/com/datastax/oss/driver/api/core/session/SessionBuilder.java |
Removes secure-bundle APIs. |
core/src/main/java/com/datastax/oss/driver/api/core/session/ProgrammaticArguments.java |
Removes cloud proxy arguments. |
core/src/main/java/com/datastax/oss/driver/api/core/config/TypedDriverOption.java |
Removes the typed cloud option. |
core/src/main/java/com/datastax/oss/driver/api/core/config/DefaultDriverOption.java |
Removes the cloud option definition. |
core/pom.xml |
Removes the core WireMock dependency. |
Review details
- Files reviewed: 36/39 changed files
- Comments generated: 0
- Review effort level: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
Cleanup left over from the Astra removal — none block this PR, no correctness bugs found, but worth a follow-up: [Minor] 🟡 [Minor] 🟡 [Minor] 🟡 [Nit] 🟢 [Nit] 🟢 [Nit] 🟢 |
d16e315 to
4a44271
Compare
|
Thanks. I addressed the actionable internal/test cleanup in
I’m intentionally retaining the other items:
|
Closes #1026. Part of #1025.
What and why
Remove DataStax Astra secure-connect-bundle parsing, topology/SNI routing, public configuration, examples, and tests. ScyllaDB does not use or test this path, so deleting it reduces unverified production and test code that the team must support.
Scylla client routes/private-endpoint support is preserved.
Validation
mvn -pl core clean test— 3,955 unit tests and 76 Reactive Streams TCK checks passed.mvn -pl core -DskipTests verifymvn -pl examples -DskipTests package-Pfast/missing-sources incompatibility.Dependencies: none. Cherry-picked commits: none.